package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysShoestaglogsMapper;
import com.ruoyi.system.domain.SysShoestaglogs;
import com.ruoyi.system.service.ISysShoestaglogsService;
import com.ruoyi.common.core.text.Convert;

/**
 * 鞋标签记录Service业务层处理
 * 
 * @author colin
 * @date 2021-08-04
 */
@Service
public class SysShoestaglogsServiceImpl implements ISysShoestaglogsService 
{
    @Autowired
    private SysShoestaglogsMapper sysShoestaglogsMapper;

    /**
     * 查询鞋标签记录
     * 
     * @param id 鞋标签记录主键
     * @return 鞋标签记录
     */
    @Override
    public SysShoestaglogs selectSysShoestaglogsById(Long id)
    {
        return sysShoestaglogsMapper.selectSysShoestaglogsById(id);
    }

    /**
     * 查询鞋标签记录列表
     * 
     * @param sysShoestaglogs 鞋标签记录
     * @return 鞋标签记录
     */
    @Override
    public List<SysShoestaglogs> selectSysShoestaglogsList(SysShoestaglogs sysShoestaglogs)
    {
        return sysShoestaglogsMapper.selectSysShoestaglogsList(sysShoestaglogs);
    }

    /**
     * 新增鞋标签记录
     * 
     * @param sysShoestaglogs 鞋标签记录
     * @return 结果
     */
    @Override
    public int insertSysShoestaglogs(SysShoestaglogs sysShoestaglogs)
    {
        sysShoestaglogs.setCreateTime(DateUtils.getNowDate());
        return sysShoestaglogsMapper.insertSysShoestaglogs(sysShoestaglogs);
    }

    /**
     * 修改鞋标签记录
     * 
     * @param sysShoestaglogs 鞋标签记录
     * @return 结果
     */
    @Override
    public int updateSysShoestaglogs(SysShoestaglogs sysShoestaglogs)
    {
        return sysShoestaglogsMapper.updateSysShoestaglogs(sysShoestaglogs);
    }

    /**
     * 批量删除鞋标签记录
     * 
     * @param ids 需要删除的鞋标签记录主键
     * @return 结果
     */
    @Override
    public int deleteSysShoestaglogsByIds(String ids)
    {
        return sysShoestaglogsMapper.deleteSysShoestaglogsByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除鞋标签记录信息
     * 
     * @param id 鞋标签记录主键
     * @return 结果
     */
    @Override
    public int deleteSysShoestaglogsById(Long id)
    {
        return sysShoestaglogsMapper.deleteSysShoestaglogsById(id);
    }
}
